package com.andnnl.jrebel;

/**
 * Created by chenss on 2019/12/25.
 */
public class TestJRebelThread extends Thread{
    public static void main(String[] args) throws InterruptedException {
        TestJRebelThread t=new TestJRebelThread();
        t.start();
        while (true)
            Thread.sleep(1000);
    }

    @Override
    public void run() {
        while (true) {
            try {
                System.out.println("aaaaaaa修改这不生效222");
                test1();
                sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
    private void test1(){
        //修改生效
        System.out.println("222");
    }
}
